﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Index : BasePage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        //LoginedMember.Email
        
        Page.DataBind();
    }
    protected void btnlogin_Click(object sender, EventArgs e)
    {
        BLLLogin bllLogin = new BLLLogin();
        tblCustomer member = bllLogin.login(txtEmail.Text, txtPassword.Text);
        if (member != null)
        {
            LoginedMember = member;
            Response.Redirect("~/Index.aspx");
        }
        else
        {
            lblError.Visible = true;
        }
        

    }
 
}